/*
 * @Author: zhang ke
 * @Date: 2025-06-21 14:37:16
 * @LastEditors: your name
 * @LastEditTime: 2025-06-21 15:40:28
 * @Description: 定义类型
 * @FilePath: \vue3-admin\src\api\user\type.ts
 */
// 登录接口需要携带参数ts类型
export interface LoginFormData{
    username:string,
    password:string
}

interface dataType{
    token?:string,
    message?:string,
}
export interface LoginResponseData{
    code:number,
    data:dataType
}


interface userInfo {
    userId: number,
    avatar:string,
    username: string,
    password: string,
    desc: string,
    roles: string[],
    buttons: string[],
    routes:string[],
    token:string
}
interface user {
    checkUser:userInfo
}
export interface UserResponseData{
    code:number,
    data:user
}